import request from '@/utils/request';
import config from '@/env/config';

import { LoginRequestParams } from '@/types';

/**
 * 登录接口
 * @param data
 * @returns
 */
export function loginService(data: LoginRequestParams): Promise<never> {
  return request({
    data,
    method: 'post',
    url: `${config.SERVICE_API}api/user/login`,
  });
}
